Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-ReferralRequest2to3.html |
Url | http://hl7.org/fhir/StructureMap/ReferralRequest2to3 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | ReferralRequest2to3 |
Title | ReferralRequest Transforms: R2 to R3 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | ReferralRequestTransformsR2toR3 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/ReferralRequest2to3' /// name = 'ReferralRequest2to3' /// title = 'ReferralRequest Transforms: R2 to R3' /// status = 'active' uses "http://hl7.org/fhir/1.0/ReferralRequest" alias ReferralRequestR2 as source uses "http://hl7.org/fhir/3.0/ReferralRequest" alias ReferralRequest as target imports "http://hl7.org/fhir/StructureMap/*2to3" group ReferralRequest(source src : ReferralRequestR2, target tgt : ReferralRequest) extends DomainResource <<type+>> { src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/ReferralRequest.status-R2toR3', 'code') "ReferralRequest-status"; src.identifier -> tgt.identifier "ReferralRequest-identifier"; src.date -> tgt.authoredOn "ReferralRequest-date"; src.type -> tgt.type "ReferralRequest-type"; src.specialty -> tgt.specialty "ReferralRequest-specialty"; src.priority as v then { v.coding as v1 where v1.system = 'http://hl7.org/fhir/diagnostic-order-priority' then { v1.code -> tgt.priority "t2"; } "test"; } "ReferralRequest-priority"; src.patient -> tgt.subject "ReferralRequest-patient"; src.requester as v -> tgt.requester as t, t.agent = v "ReferralRequest-requester"; src.recipient -> tgt.recipient "ReferralRequest-recipient"; src.encounter -> tgt.context "ReferralRequest-encounter"; src.reason -> tgt.reasonCode "ReferralRequest-reason"; src.description -> tgt.description "ReferralRequest-description"; src.serviceRequested -> tgt.serviceRequested "ReferralRequest-serviceRequested"; src.supportingInformation -> tgt.supportingInfo "ReferralRequest-supportingInformation"; src.fulfillmentTime -> tgt.occurrence "ReferralRequest-fulfillmentTime"; }
{
"resourceType" : "StructureMap",
"id" : "ReferralRequest2to3",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/ReferralRequest2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'ReferralRequest2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'ReferralRequest Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/ReferralRequest<span style=\"color: navy\">" </span><b>alias </b>ReferralRequestR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/ReferralRequest<span style=\"color: navy\">" </span><b>alias </b>ReferralRequest <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>ReferralRequest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ReferralRequestR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ReferralRequest<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/ReferralRequest.status-R2toR3'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>"ReferralRequest-status"</i><span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"ReferralRequest-identifier"</i><span style=\"color: navy\">;</span>\r\n src.date<span style=\"color: navy\"><b> -> </b></span>tgt.authoredOn <i>"ReferralRequest-date"</i><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type <i>"ReferralRequest-type"</i><span style=\"color: navy\">;</span>\r\n src.specialty<span style=\"color: navy\"><b> -> </b></span>tgt.specialty <i>"ReferralRequest-specialty"</i><span style=\"color: navy\">;</span>\r\n src.priority<b> as </b><span style=\"color: maroon\">v</span><b> then</b><span style=\"color: navy\"> {\r\n</span> v.coding<b> as </b><span style=\"color: maroon\">v1</span><b> where </b>v1.system = 'http://hl7.org/fhir/diagnostic-order-priority'<b> then</b><span style=\"color: navy\"> {\r\n</span> v1.code<span style=\"color: navy\"><b> -> </b></span>tgt.priority <i>"t2"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"test"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"ReferralRequest-priority"</i><span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.subject <i>"ReferralRequest-patient"</i><span style=\"color: navy\">;</span>\r\n src.requester<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.requester<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.agent = <span style=\"color: maroon\">v</span> <i>"ReferralRequest-requester"</i><span style=\"color: navy\">;</span>\r\n src.recipient<span style=\"color: navy\"><b> -> </b></span>tgt.recipient <i>"ReferralRequest-recipient"</i><span style=\"color: navy\">;</span>\r\n src.encounter<span style=\"color: navy\"><b> -> </b></span>tgt.context <i>"ReferralRequest-encounter"</i><span style=\"color: navy\">;</span>\r\n src.reason<span style=\"color: navy\"><b> -> </b></span>tgt.reasonCode <i>"ReferralRequest-reason"</i><span style=\"color: navy\">;</span>\r\n src.description<span style=\"color: navy\"><b> -> </b></span>tgt.description <i>"ReferralRequest-description"</i><span style=\"color: navy\">;</span>\r\n src.serviceRequested<span style=\"color: navy\"><b> -> </b></span>tgt.serviceRequested <i>"ReferralRequest-serviceRequested"</i><span style=\"color: navy\">;</span>\r\n src.supportingInformation<span style=\"color: navy\"><b> -> </b></span>tgt.supportingInfo <i>"ReferralRequest-supportingInformation"</i><span style=\"color: navy\">;</span>\r\n src.fulfillmentTime<span style=\"color: navy\"><b> -> </b></span>tgt.occurrence <i>"ReferralRequest-fulfillmentTime"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/ReferralRequest2to3",
"version" : "0.1.0",
"name" : "ReferralRequest2to3",
"title" : "ReferralRequest Transforms: R2 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "ReferralRequestTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/ReferralRequest",
"mode" : "source",
"alias" : "ReferralRequestR2"
},
{
"url" : "http://hl7.org/fhir/3.0/ReferralRequest",
"mode" : "target",
"alias" : "ReferralRequest"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*2to3"
],
"group" : [
{
"name" : "ReferralRequest",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "ReferralRequestR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ReferralRequest",
"mode" : "target"
}
],
"rule" : [
{
"name" : "ReferralRequest-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "http://hl7.org/fhir/ConceptMap/ReferralRequest.status-R2toR3"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "ReferralRequest-identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-date",
"source" : [
{
"context" : "src",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "authoredOn",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-specialty",
"source" : [
{
"context" : "src",
"element" : "specialty",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "specialty",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-priority",
"source" : [
{
"context" : "src",
"element" : "priority",
"variable" : "v"
}
],
"rule" : [
{
"name" : "test",
"source" : [
{
"context" : "v",
"element" : "coding",
"variable" : "v1",
"condition" : "v1.system = 'http://hl7.org/fhir/diagnostic-order-priority'"
}
],
"rule" : [
{
"name" : "t2",
"source" : [
{
"context" : "v1",
"element" : "code",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "priority",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
},
{
"name" : "ReferralRequest-patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-requester",
"source" : [
{
"context" : "src",
"element" : "requester",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "requester",
"variable" : "t"
},
{
"context" : "t",
"element" : "agent",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "ReferralRequest-recipient",
"source" : [
{
"context" : "src",
"element" : "recipient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "recipient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-encounter",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "context",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-reason",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonCode",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-description",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "description",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-serviceRequested",
"source" : [
{
"context" : "src",
"element" : "serviceRequested",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "serviceRequested",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-supportingInformation",
"source" : [
{
"context" : "src",
"element" : "supportingInformation",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "supportingInfo",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ReferralRequest-fulfillmentTime",
"source" : [
{
"context" : "src",
"element" : "fulfillmentTime",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "occurrence",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.